from math import *;
from com.oop.inherit import *;


class Vector:
    def __init__(self, a, b):
        self.a = a
        self.b = b

    __pp = "private";

    def __privatem(self):
        print("私有--方法-" + self.__pp);

    def privatem(self):
        print("私有--变量-" + self.__pp);
        self.__privatem()


v1 = Vector(2, 10)
v2 = Vector(5, -2)
print(v1.a + v2.a, v1.b + v2.b)
v1.privatem()
v1.__init__(10, 12)
print(v1.a, v1.b)



c = child("childname--");
c.printf()
